from pyhive import hive

conn = hive.Connection(host= '192.168.88.161',port='10000',username='root' )

cursor = conn.cursor()
def querys(sql,params,type='no_select'):
    params = tuple(params)
    cursor.execute(sql,params)
    if type != 'no_select':
        data_list = cursor.fetchall()
        conn.commit()
        return data_list
    else:
        conn.commit()
        return

data1 = querys('select * from fooddata',[],'select')
print(data1[0])